
import Storage from '@/assets/utils/Storage'
export default {
	setMyLocation:({ commit, dispatch, state}, {loadFirst = true, location}) => {
		commit("SET_MYLOCATION", location);
	},
	setToken:({ commit, dispatch, state}, {loadFirst = true, toKen}) => {
		commit("SET_TOKEN", toKen);
		Storage.setStorage('toKen',toKen)
	},
	setOpenid:({ commit, dispatch, state}, {loadFirst = true, openid}) => {
		commit("SET_OPENID", openid);
	},
	setAuntMsg:({ commit, dispatch, state}, {loadFirst = true, pageName, pageData}) => {
		commit("SET_AUNTMSG", { pageName,pageData});
	},
	setUser:({ commit, dispatch, state}, {loadFirst = true, userInfo}) => {
		commit("SET_USER", userInfo);
	},
	setAppState:({ commit, dispatch, state}, {loadFirst = true, status}) => {
		commit("SET_APPSTATE", status);
	},




}
